var _ = require("lodash");
// _.isEqual(value, other)
// 执行深比较来确定两者的值是否相等

var object = [
  { name: "tom", age: "18" },
  { name: "tom2", age: "28" },
  { name: "tom3", age: "38" },
];
var other = [
  { name: "tom", age: "18" },
  { name: "tom2", age: "28" },
  { name: "tom3", age: "38" },
];

let a = _.isEqual(object, other);
// => true
console.log(a);

// _.isEqualWith(value, other, [customizer])
// 根据迭代函数的返回值来进行比较
